namespace CthulhuDomain.GameEntities
{
  public class ShootFactory : DomainFactory
  {
    public override DomainEntity CreateEntity(IContentManager manager)
    {
      return CreateEntity(manager, new ShootState
                                     {
                                       LifePoints = 1,
                                       StartingPosition = new Vector2Adapter(0, 0),
                                       Direction = DomainEntity.eDirection.Up
                                     });
    }

    public override DomainEntity CreateEntity(IContentManager manager, EntityState state)
    {
      var entity = new Shoot(state.StartingPosition) { LifePoint = state.LifePoints, Texture = manager.LoadTexture("esagon") };
      entity.MovementStrategy = new Strategies.VerticalMovement(entity);

      return entity;
    }
  }
}